home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / commontex / h / file < prev    next >
Encoding:
Text File  |  1988-05-01  |  2.2 KB  |  92 lines

  1. /*
  2.  *    Copyright 1986, 1987 Pat Joseph Monardo. All rights reserved.
  3.  *    Copying of this file is granted according to the provisions 
  4.  *    specified in the file COPYING which must accompany this file.
  5.  */
  6.  
  7.  
  8. /*
  9.  *              file.h
  10.  */
  11.  
  12. global  char    name_of_file[];
  13. global  int             name_length;
  14.  
  15. global  str             cur_name;
  16. global  str             cur_area;
  17. global  str             cur_ext;
  18.  
  19. global  int             area_delimiter;
  20. global  int             ext_delimiter;
  21.  
  22. #define MAX_PATH_CHARS  1024
  23.  
  24. global  char    input_path[];
  25. global  char    format_path[];
  26. global  char    font_path[];
  27.  
  28. int             set_paths();
  29.  
  30. #define default_font_path               "TexFonts:,"
  31. #define default_format_path             "TexFormats:,"
  32. #define default_input_path              "TexInputs:,"
  33.  
  34. int             print_file_name();
  35. int             pack_file_name();
  36.  
  37. #define TeX_format_default      "plain.fmt"
  38.  
  39. bool    open_fmt_file();
  40.  
  41. str     make_name_string();
  42. int             write_name_string();
  43.  
  44. #define a_make_name_string(f)           make_name_string()
  45. #define b_make_name_string(f)           make_name_string()
  46. #define w_make_name_string(f)           make_name_string()
  47.  
  48. global  bool    name_in_progress;
  49. int             scan_file_name();
  50.  
  51. #define pack_cur_name() \
  52.         {pack_file_name(cur_name, cur_area, cur_ext);}
  53.  
  54. int             pack_job_name();
  55. int             prompt_job_name();
  56.  
  57. global  str     dvi_name;
  58.  
  59. global  str             job_name;
  60. global  str             job_area;
  61. global  str             log_name;
  62.  
  63. int             open_log_file();
  64. int             start_input();
  65.  
  66. global  alpha_file      read_file[];
  67. global  int             read_open[];
  68.  
  69. #define JUST_OPENED                     1
  70. #define CLOSED                          2
  71.  
  72. bool    test_access();
  73.  
  74. #define READ_ACCESS                     4
  75. #define WRITE_ACCESS            2
  76.  
  77. #define NO_FILE_PATH            0
  78. #define INPUT_FILE_PATH         1
  79. #define FONT_FILE_PATH          2
  80. #define FORMAT_FILE_PATH        3
  81.  
  82. global  str             str_dvi;
  83. global  str             str_tex;
  84. global  str             str_log;
  85. global  str             str_tfm;
  86. global  str             str_fmt;
  87. global  str             str_texput;
  88.  
  89. #ifdef INIT
  90. int             init_file();
  91. #endif
  92.